package org.bling.star.client.server.send;

import org.bling.star.common.command.DisConnectCommand;
import org.bling.star.common.command.ExitCommand;
import org.bling.star.common.command.JoinCommand;
import org.bling.star.common.command.TalkingCommand;
import org.bling.star.common.response.BaseResponse;

/**
 * @Describe: 通信处理（专注于聊天室通信）
 * @Date: 2024/5/28
 * @Author: szz
 */
public interface ConnectService {
    //创建聊天室
    BaseResponse createTalkingPool();
    //加入聊天室
    BaseResponse join(JoinCommand joinRequest);
    //聊天室发言
    BaseResponse talking(TalkingCommand talkingRequest);
    //退出聊天室
    void exit(ExitCommand exitCommand);
    //断开连接
    void disconnect(DisConnectCommand disConnectCommand);

    void close();
}
